package com.eportal.ORM;

import java.sql.Timestamp;


/**
 * PosDkCustinfoId entity. @author MyEclipse Persistence Tools
 */

public class PosDkCustinfoId  implements java.io.Serializable {


    // Fields    

     private String custTerno;
     private String custCdno;
     private String custDesc;
     private Timestamp custDate;
     private String custOutbank;
     private String custType;
     private String custFlag;


    // Constructors

    /** default constructor */
    public PosDkCustinfoId() {
    }

	/** minimal constructor */
    public PosDkCustinfoId(String custTerno, String custCdno, Timestamp custDate) {
        this.custTerno = custTerno;
        this.custCdno = custCdno;
        this.custDate = custDate;
    }
    
    /** full constructor */
    public PosDkCustinfoId(String custTerno, String custCdno, String custDesc, Timestamp custDate, String custOutbank, String custType, String custFlag) {
        this.custTerno = custTerno;
        this.custCdno = custCdno;
        this.custDesc = custDesc;
        this.custDate = custDate;
        this.custOutbank = custOutbank;
        this.custType = custType;
        this.custFlag = custFlag;
    }

   
    // Property accessors

    public String getCustTerno() {
        return this.custTerno;
    }
    
    public void setCustTerno(String custTerno) {
        this.custTerno = custTerno;
    }

    public String getCustCdno() {
        return this.custCdno;
    }
    
    public void setCustCdno(String custCdno) {
        this.custCdno = custCdno;
    }

    public String getCustDesc() {
        return this.custDesc;
    }
    
    public void setCustDesc(String custDesc) {
        this.custDesc = custDesc;
    }

    public Timestamp getCustDate() {
        return this.custDate;
    }
    
    public void setCustDate(Timestamp custDate) {
        this.custDate = custDate;
    }

    public String getCustOutbank() {
        return this.custOutbank;
    }
    
    public void setCustOutbank(String custOutbank) {
        this.custOutbank = custOutbank;
    }

    public String getCustType() {
        return this.custType;
    }
    
    public void setCustType(String custType) {
        this.custType = custType;
    }

    public String getCustFlag() {
        return this.custFlag;
    }
    
    public void setCustFlag(String custFlag) {
        this.custFlag = custFlag;
    }
   



   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof PosDkCustinfoId) ) return false;
		 PosDkCustinfoId castOther = ( PosDkCustinfoId ) other; 
         
		 return ( (this.getCustTerno()==castOther.getCustTerno()) || ( this.getCustTerno()!=null && castOther.getCustTerno()!=null && this.getCustTerno().equals(castOther.getCustTerno()) ) )
 && ( (this.getCustCdno()==castOther.getCustCdno()) || ( this.getCustCdno()!=null && castOther.getCustCdno()!=null && this.getCustCdno().equals(castOther.getCustCdno()) ) )
 && ( (this.getCustDesc()==castOther.getCustDesc()) || ( this.getCustDesc()!=null && castOther.getCustDesc()!=null && this.getCustDesc().equals(castOther.getCustDesc()) ) )
 && ( (this.getCustDate()==castOther.getCustDate()) || ( this.getCustDate()!=null && castOther.getCustDate()!=null && this.getCustDate().equals(castOther.getCustDate()) ) )
 && ( (this.getCustOutbank()==castOther.getCustOutbank()) || ( this.getCustOutbank()!=null && castOther.getCustOutbank()!=null && this.getCustOutbank().equals(castOther.getCustOutbank()) ) )
 && ( (this.getCustType()==castOther.getCustType()) || ( this.getCustType()!=null && castOther.getCustType()!=null && this.getCustType().equals(castOther.getCustType()) ) )
 && ( (this.getCustFlag()==castOther.getCustFlag()) || ( this.getCustFlag()!=null && castOther.getCustFlag()!=null && this.getCustFlag().equals(castOther.getCustFlag()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getCustTerno() == null ? 0 : this.getCustTerno().hashCode() );
         result = 37 * result + ( getCustCdno() == null ? 0 : this.getCustCdno().hashCode() );
         result = 37 * result + ( getCustDesc() == null ? 0 : this.getCustDesc().hashCode() );
         result = 37 * result + ( getCustDate() == null ? 0 : this.getCustDate().hashCode() );
         result = 37 * result + ( getCustOutbank() == null ? 0 : this.getCustOutbank().hashCode() );
         result = 37 * result + ( getCustType() == null ? 0 : this.getCustType().hashCode() );
         result = 37 * result + ( getCustFlag() == null ? 0 : this.getCustFlag().hashCode() );
         return result;
   }   





}